package com.atguigu.springcloud.service;

import org.springframework.stereotype.Component;

/**
 * @program: cloud2020
 * @description:
 * @author: ZhaoYe
 * @create: 2021-08-05 13:47
 **/
@Component
public class PaymentFallback implements  PaymentHystrixService{

    @Override
    public String paymentInfoOk(Integer id) {

        return "-----PaymentFallback fall back-paymentInfo_OK , (┬＿┬)";

    }

    @Override
    public String paymentInfoTimeOut(Integer id) {
        return "-----PaymentFallback fall back-paymentInfo_TimeOut , (┬＿┬)";
    }
}